From 75b45aeabf88731b03d97fafa8952c01444b146e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 15 Sep 2021 00:27:32 -0400 Subject: [PATCH] Fix memorytexture float conversion This was silently dropping the alpha in one case. --- gdk/gdkmemorytexture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkmemorytexture.c b/gdk/gdkmemorytexture.c index 631357bcc8..6c08ef531b 100644 --- a/gdk/gdkmemorytexture.c +++ b/gdk/gdkmemorytexture.c @@ -603,7 +603,7 @@ convert_rgba16_to_float (float *dest, const guchar *src_data) dest[0] = src[0] / 65535.f; dest[1] = src[1] / 65535.f; dest[2] = src[2] / 65535.f; - dest[3] = 1.0; + dest[3] = src[3] / 65535.f; } static inline void -- 2.30.2